package com.lframework.xingyun.basedata.service.member;

import com.lframework.starter.web.core.service.BaseMpService;
import com.lframework.xingyun.basedata.bo.member.QueryMemberAccountBo;
import com.lframework.xingyun.basedata.entity.MemberAccount;
import com.lframework.xingyun.basedata.vo.member.MemberAccountChangeVo;
import com.lframework.xingyun.basedata.vo.member.QueryMemberAccountVo;

/**
 * 会员积分账户 Service
 *
 * @author mos
 */
public interface MemberAccountService extends BaseMpService<MemberAccount> {
    /**
     * 根据会员ID查询
     * @param memberId 会员ID
     * @return 会员积分账户
     */
    QueryMemberAccountBo queryByMemberId(String memberId);

    /**
     * 创建
     * @param vo
     * @return
     */
    String create(QueryMemberAccountVo vo);

    /**
     * 积分变动
     * @param vo
     * @return
     */
    String changeScore(MemberAccountChangeVo vo);
}
